<?php
/**
 * Created by PhpStorm.
 * User: ZhangWei
 * Date: 2017/5/10
 * Time: 10:33
 */

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

/**
 *
 * Class NewsDetail
 * @package App\Models
 * @mixin \Eloquent
 */
class NewsDetail extends Model
{
    protected $table = "news_detail";
    protected $primaryKey = "news_id";

    public $timestamps = false;

    protected $guarded = [];

    public function news(){
        return $this->belongsTo(News::class);
    }

}